{include file="header.htm"}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$title}</title>
</head>
<body>
	<div  align="left" class="foot">
    <div class="top">{if $u.user_id}<a href="{url _a=user _m=index}">{$u.user_nick}</a>的猫指令列表 | <a href="{url _a=Login _m=Logout returl=$returl}">{$L.EXIT}</a>{else}欢迎你！<a href="{url _a=Login _m=index}">登陆</a>|<a href="{url _a=Register _m=index}">注册</a>{/if}</div>
		<div class="content-box-content">
		 <a class="button2"  href="{url _m=Addsms}">购买指令</a>  <a  class="button2"  href="{url _m=getLog}">日志调用</a>
		 <div class="list"></div>
		 {if $list}
		 {section name=i loop=$list}
		 	<div class="list">{$page*$pagesize-$pagesize+$smarty.section.i.index+1}.指令:{$list[i].command_content} <br />
		 	密令:{$list[i].command_key}<br />
		 	到期时间:{$list[i].command_expired}<br />
		 	<a  class="button2" href="{url _m=SmsRenewal id=$list[i].command_id}">续费</a> 
		 	<a  class="button2" href="{url _m=Smslog id=$list[i].command_id}">日志</a> 
		 	<a class="button2"  href="{url _m=Editsms id=$list[i].command_id}">修改</a>
		 	<a  class="button2" href="{url _m=Delsms id=$list[i].command_id}">删除</a>
</div>
		 {/section}
		  [第{$page}/{$pagecount}页 共{$count}条指令]<br />
{if $page>2}<a class="button2" href="{url page=1}">首页</a>{/if} 
{if $pagecount>1 && $page<$pagecount}<a class="button2" href="{url page=$page+1}">下页</a>{/if} 
{if $page>1}<a class="button2" href="{url page=$page-1}">上页</a>{/if} 
{if $page<$pagecount && $pagecount>2}<a class="button2" href="{url page=$pagecount}">末页</a>{/if}
{if $pagecount>1}<hr />{/if}
		 {else}
		 还没有设置短信指令<br/>
		 {/if}
		</div><a class="button2"  href="{url _m=index}">会员中心</a> <a  class="button2" href="{url _a=index _m=index}">网站首页</a>
		{include file="footer.htm"}
	</div>
</body>
</html>
